package SuperMarket;


import SuperMarketGuis.*;

import java.sql.*;


public class SuperMarket 
{

    
   
	
    
    public static void main (String args[])
    {	
	while(true)
		{
		String fn = null;
		String ln = null;
		Loging_in log = new Loging_in();
		log.Logingin();
		fn = log.getFirst_name();
		ln = log.getLast_name();
		
		if (log.getAdminpr()==1)
		{
                    
                    
                    Adminentranceold ae = new Adminentranceold(fn,ln);
                    ae.setVisible(true);
                    AddStoreGui as = new AddStoreGui(null, true);
                    as.setVisible(true);
                    break;
                    
			
		}
		else
		{
                    Customerentranceold ce = new Customerentranceold(fn, ln);
                    ce.setVisible(true);
                    break;
		
		}
		}
        
    }
    
    
}
